<template>
<van-cell-group inset>
  <van-field label="昵称" :model-value=mine_info.nick readonly />
  <van-field label="年龄" :model-value=mine_info.age readonly />
  <van-field label="性别" model-value='男' readonly v-show='!mine_info.sex'/>
  <van-field label="性别" model-value='女' readonly v-show="mine_info.sex"/>
  
</van-cell-group>
</template>

<script setup lang="ts">
// import {useMyinfo} from '@/hooks/myinfo'
// const {tel,text,digit,number,password} = useMyinfo
// import { ref } from 'vue';
// const tel = ref('');
//     const text = ref('');
//     const digit = ref('');
//     const number = ref('');
//     const password = ref('');

import { useMine } from '@/hooks/mine';
const {mine_info} = useMine()

console.log(mine_info.value)    
</script>

<style scoped>

</style>